package practice02;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice02
 * @ClassName: Rabbit
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/11 19:04
 * @Copyright 大牛版板所有
 */
public class Rabbit extends Animal {

    public Rabbit() {
    }

    public Rabbit(String name, String color, String type) {
        super(name, color, type);
    }

    @Override
    public void cry(){
        System.out.println("那只"+this.getColor()+"的，名叫"+this.getName()+"的兔子在叽叽的叫");
    }

    @Override
    public void eat(){
        System.out.println("兔子是"+this.getType()+"，爱吃胡萝卜");
    }
}
